<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Zend Gdata API Documentation</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta><link rel="stylesheet" href="../css/template.css" type="text/css"></link><script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script><script type="text/javascript" src="../js/jquery.tools.min.js"></script><script type="text/javascript" src="../js/jquery-ui-1.8.2.custom.min.js"></script><script type="text/javascript" src="../js/template.js"></script></head><body><div id="content"><h1 class="file">Uri/Http.php</h1><div id="file-nav-box"><div id="file-nav-options">
              Show:
              <img src="../images/icons/visibility_public.png" alt="Public" id="show-public"></img><img src="../images/icons/visibility_protected.png" alt="Protected" id="show-protected"></img><img src="../images/icons/visibility_private.png" alt="Private" id="show-private"></img><span class="attribute" id="show-inherited">inherited</span></div><div id="file-nav-container"><ul id="file-nav"><li><a href="#classes"><img src="../images/icons/class.png" alt="Class" height="14"></img>
                          Classes
                      </a><ul><li><a href="#\Zend_Uri_Http">\Zend_Uri_Http</a></li></ul></li></ul><div style="clear: left;"></div></div><div id="file-nav-tab">
              Table of Contents
          </div></div><a name="top" class="anchor"></a><div id="file-description"><div class="short-description">Zend Framework</div><div class="long-description"><p>LICENSE</p>

<p>This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.</p></div></div><dl class="file-info"><dt>Category</dt><dd>Zend
         
    </dd><dt>Copyright</dt><dd>Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
         
    </dd><dt>License</dt><dd><a href="http://framework.zend.com/license/new-bsd">New BSD License</a>
         
    </dd><dt>Package</dt><dd>Zend_Uri
         
    </dd><dt>Version</dt><dd>$Id: Http.php 24593 2012-01-05 20:35:02Z matthew $
         
    </dd></dl><a name="classes" class="anchor"></a><a id="\Zend_Uri_Http" class="anchor"></a><h2 class="class">\Zend_Uri_Http<div class="to-top"><a href="#top">jump to top</a></div></h2><div class="class"><small class="package"><b>Package: </b>Zend\Uri</small><div class="short-description">HTTP(S) URI handler</div><div class="long-description"></div><dl class="class-info"><dt>Parent(s)</dt><dd><a href="../files/Uri.html#\Zend_Uri">\Zend_Uri</a></dd><dt>Category</dt><dd>Zend
         
    </dd><dt>Copyright</dt><dd>Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
         
    </dd><dt>License</dt><dd><a href="http://framework.zend.com/license/new-bsd">New BSD License</a>
         
    </dd><dt>Uses</dt><dd>\global\Zend_Uri
         
    </dd></dl><h3>Constants</h3><div><a id="\Zend_Uri_Http::CHAR_ALNUM" class="anchor"></a><div class="constant publicC"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png" alt="&gt;"></img><img src="../images/icons/arrow_down.png" alt="V" style="display: none;"></img></a><code class="title"><img src="../images/icons/constant.png" alt="Constant"></img> 
                <span class="highlight">CHAR_ALNUM</span>
                = 'A-Za-z0-9'</code><div class="description"><div class="short-description">Character classes for validation regular expressions</div></div><div class="code-tabs"><div class="long-description"></div></div><div class="clear"></div></div><a id="\Zend_Uri_Http::CHAR_MARK" class="anchor"></a><div class="constant publicC"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png" alt="&gt;"></img><img src="../images/icons/arrow_down.png" alt="V" style="display: none;"></img></a><code class="title"><img src="../images/icons/constant.png" alt="Constant"></img> 
                <span class="highlight">CHAR_MARK</span>
                = '-_.!~*\'()\[\]'</code><div class="description"></div><div class="code-tabs"></div><div class="clear"></div></div><a id="\Zend_Uri_Http::CHAR_RESERVED" class="anchor"></a><div class="constant publicC"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png" alt="&gt;"></img><img src="../images/icons/arrow_down.png" alt="V" style="display: none;"></img></a><code class="title"><img src="../images/icons/constant.png" alt="Constant"></img> 
                <span class="highlight">CHAR_RESERVED</span>
                = ';\/?:@&amp;=+$,'</code><div class="description"></div><div class="code-tabs"></div><div class="clear"></div></div><a id="\Zend_Uri_Http::CHAR_SEGMENT" class="anchor"></a><div class="constant publicC"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png" alt="&gt;"></img><img src="../images/icons/arrow_down.png" alt="V" style="display: none;"></img></a><code class="title"><img src="../images/icons/constant.png" alt="Constant"></img> 
                <span class="highlight">CHAR_SEGMENT</span>
                = ':@&amp;=+$,;'</code><div class="description"></div><div class="code-tabs"></div><div class="clear"></div></div><a id="\Zend_Uri_Http::CHAR_UNWISE" class="anchor"></a><div class="constant publicC"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png" alt="&gt;"></img><img src="../images/icons/arrow_down.png" alt="V" style="display: none;"></img></a><code class="title"><img src="../images/icons/constant.png" alt="Constant"></img> 
                <span class="highlight">CHAR_UNWISE</span>
                = '{}|\\\\^`'</code><div class="description"></div><div class="code-tabs"></div><div class="clear"></div></div></div><h3>Properties</h3><div><a id="\Zend_Uri_Http::$_config" class="anchor"></a><div class="property protected inherited_from "><a href="#" class="gripper"><img src="../images/icons/arrow_right.png" alt="&gt;"></img><img src="../images/icons/arrow_down.png" alt="V" style="display: none;"></img></a><code class="title"><img src="../images/icons/property.png" alt="Property"></img><img src="../images/icons/visibility_protected.png" style="margin-right: 5px" alt="protected"></img>array <span class="highlight">$_config</span> = array('allow_unwise' =&gt; false)</code><div class="description"><span class="attribute">static</span><span class="attribute">inherited</span><div class="short-description">Global configuration array</div><small class="inherited_from">Inherited from:
                        <a href="../files/Uri.html#\Zend_Uri::$$_config">\Zend_Uri::$$_config</a></small></div><div class="code-tabs"><div class="long-description"></div><strong>Default value</strong><code>array('allow_unwise' =&gt; false)</code><strong>Details</strong><dl class="property-info"><dt>Type</dt><dd>array</dd><dt>Inherited_from</dt><dd><a href="../files/
                         Uri.html#\Zend_Uri::$$_config">\Zend_Uri::$$_config</a>
         
    </dd></dl></div><div class="clear"></div></div><a id="\Zend_Uri_Http::$_fragment" class="anchor"></a><div class="property protected"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png" alt="&gt;"></img><img src="../images/icons/arrow_down.png" alt="V" style="display: none;"></img></a><code class="title"><img src="../images/icons/property.png" alt="Property"></img><img src="../images/icons/visibility_protected.png" style="margin-right: 5px" alt="protected"></img>string <span class="highlight">$_fragment</span> = ''</code><div class="description"><div class="short-description">HTTP fragment</div></div><div class="code-tabs"><div class="long-description"></div><strong>Default value</strong><code>''</code><strong>Details</strong><dl class="property-info"><dt>Type</dt><dd>string</dd></dl></div><div class="clear"></div></div><a id="\Zend_Uri_Http::$_host" class="anchor"></a><div class="property protected"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png" alt="&gt;"></img><img src="../images/icons/arrow_down.png" alt="V" style="display: none;"></img></a><code class="title"><img src="../images/icons/property.png" alt="Property"></img><img src="../images/icons/visibility_protected.png" style="margin-right: 5px" alt="protected"></img>string <span class="highlight">$_host</span> = ''</code><div class="description"><div class="short-description">HTTP host</div></div><div class="code-tabs"><div class="long-description"></div><strong>Default value</strong><code>''</code><strong>Details</strong><dl class="property-info"><dt>Type</dt><dd>string</dd></dl></div><div class="clear"></div></div><a id="\Zend_Uri_Http::$_password" class="anchor"></a><div class="property protected"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png" alt="&gt;"></img><img src="../images/icons/arrow_down.png" alt="V" style="display: none;"></img></a><code class="title"><img src="../images/icons/property.png" alt="Property"></img><img src="../images/icons/visibility_protected.png" style="margin-right: 5px" alt="protected"></img>string <span class="highlight">$_password</span> = ''</code><div class="description"><div class="short-description">HTTP password</div></div><div class="code-tabs"><div class="long-description"></div><strong>Default value</strong><code>''</code><strong>Details</strong><dl class="property-info"><dt>Type</dt><dd>string</dd></dl></div><div class="clear"></div></div><a id="\Zend_Uri_Http::$_path" class="anchor"></a><div class="property protected"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png" alt="&gt;"></img><img src="../images/icons/arrow_down.png" alt="V" style="display: none;"></img></a><code class="title"><img src="../images/icons/property.png" alt="Property"></img><img src="../images/icons/visibility_protected.png" style="margin-right: 5px" alt="protected"></img>string <span class="highlight">$_path</span> = ''</code><div class="description"><div class="short-description">HTTP part</div></div><div class="code-tabs"><div class="long-description"></div><strong>Default value</strong><code>''</code><strong>Details</strong><dl class="property-info"><dt>Type</dt><dd>string</dd></dl></div><div class="clear"></div></div><a id="\Zend_Uri_Http::$_port" class="anchor"></a><div class="property protected"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png" alt="&gt;"></img><img src="../images/icons/arrow_down.png" alt="V" style="display: none;"></img></a><code class="title"><img src="../images/icons/property.png" alt="Property"></img><img src="../images/icons/visibility_protected.png" style="margin-right: 5px" alt="protected"></img>string <span class="highlight">$_port</span> = ''</code><div class="description"><div class="short-description">HTTP post</div></div><div class="code-tabs"><div class="long-description"></div><strong>Default value</strong><code>''</code><strong>Details</strong><dl class="property-info"><dt>Type</dt><dd>string</dd></dl></div><div class="clear"></div></div><a id="\Zend_Uri_Http::$_query" class="anchor"></a><div class="property protected"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png" alt="&gt;"></img><img src="../images/icons/arrow_down.png" alt="V" style="display: none;"></img></a><code class="title"><img src="../images/icons/property.png" alt="Property"></img><img src="../images/icons/visibility_protected.png" style="margin-right: 5px" alt="protected"></img>string <span class="highlight">$_query</span> = ''</code><div class="description"><div class="short-description">HTTP query</div></div><div class="code-tabs"><div class="long-description"></div><strong>Default value</strong><code>''</code><strong>Details</strong><dl class="property-info"><dt>Type</dt><dd>string</dd></dl></div><div class="clear"></div></div><a id="\Zend_Uri_Http::$_regex" class="anchor"></a><div class="property protected"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png" alt="&gt;"></img><img src="../images/icons/arrow_down.png" alt="V" style="display: none;"></img></a><code class="title"><img src="../images/icons/property.png" alt="Property"></img><img src="../images/icons/visibility_protected.png" style="margin-right: 5px" alt="protected"></img>array <span class="highlight">$_regex</span> = array()</code><div class="description"><div class="short-description">Regular expression grammar rules for validation; values added by constructor</div></div><div class="code-tabs"><div class="long-description"></div><strong>Default value</strong><code>array()</code><strong>Details</strong><dl class="property-info"><dt>Type</dt><dd>array</dd></dl></div><div class="clear"></div></div><a id="\Zend_Uri_Http::$_scheme" class="anchor"></a><div class="property protected inherited_from "><a href="#" class="gripper"><img src="../images/icons/arrow_right.png" alt="&gt;"></img><img src="../images/icons/arrow_down.png" alt="V" style="display: none;"></img></a><code class="title"><img src="../images/icons/property.png" alt="Property"></img><img src="../images/icons/visibility_protected.png" style="margin-right: 5px" alt="protected"></img>string <span class="highlight">$_scheme</span> = ''</code><div class="description"><span class="attribute">inherited</span><div class="short-description">Scheme of this URI (http, ftp, etc.)</div><small class="inherited_from">Inherited from:
                        <a href="../files/Uri.html#\Zend_Uri::$$_scheme">\Zend_Uri::$$_scheme</a></small></div><div class="code-tabs"><div class="long-description"></div><strong>Default value</strong><code>''</code><strong>Details</strong><dl class="property-info"><dt>Type</dt><dd>string</dd><dt>Inherited_from</dt><dd><a href="../files/
                         Uri.html#\Zend_Uri::$$_scheme">\Zend_Uri::$$_scheme</a>
         
    </dd></dl></div><div class="clear"></div></div><a id="\Zend_Uri_Http::$_username" class="anchor"></a><div class="property protected"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png" alt="&gt;"></img><img src="../images/icons/arrow_down.png" alt="V" style="display: none;"></img></a><code class="title"><img src="../images/icons/property.png" alt="Property"></img><img src="../images/icons/visibility_protected.png" style="margin-right: 5px" alt="protected"></img>string <span class="highlight">$_username</span> = ''</code><div class="description"><div class="short-description">HTTP username</div></div><div class="code-tabs"><div class="long-description"></div><strong>Default value</strong><code>''</code><strong>Details</strong><dl class="property-info"><dt>Type</dt><dd>string</dd></dl></div><div class="clear"></div></div></div><h3>Methods</h3><div><a id="\Zend_Uri_Http::__construct()" class="anchor"></a><div class="method protected"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_protected.png" style="margin-right: 5px" alt="protected"></img><span class="highlight">__construct</span><span class="nb-faded-text">(string $scheme, string $schemeSpecific = '')</span> : void</code><div class="description"><p class="short_description">Constructor accepts a string $scheme (e.g., http, https) and a scheme-specific part of the URI
(e.g., example.com/path/to/resource?query=param#fragment)</p></div><div class="code-tabs"><div class="long-description"><p>Use Zend_Uri::factory() to return a new Zend_Uri object.</p></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$scheme</th><td>string</td><td><em><p>The scheme of the URI</p></em></td></tr><tr><th>$schemeSpecific</th><td>string</td><td><em><p>The scheme-specific part of the URI</p>
</em></td></tr></table><strong>Throws</strong><table class="argument-info"><thead><tr><th>Exception</th><th>Description</th></tr></thead><tr><td><a href="../files/Uri.Exception.html#\Zend_Uri_Exception">\Zend_Uri_Exception</a></td><td><em>When the URI is not valid</em></td></tr></table></div><div class="clear"></div></div><a id="\Zend_Uri_Http::__toString()" class="anchor"></a><div class="method public inherited_from "><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">__toString</span><span class="nb-faded-text">()</span> : string</code><div class="description"><span class="attribute">inherited</span><p class="short_description">Return a string representation of this URI.</p><small class="inherited_from">Inherited from:
                    <a href="../files/Uri.html#\Zend_Uri::__toString()">\Zend_Uri::__toString()</a></small></div><div class="code-tabs"><div class="long-description"></div><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>string</td><td></td></tr></table><strong>Details</strong><dl class="function-info"><dt>See</dt><dd>\getUri()
         
    </dd></dl></div><div class="clear"></div></div><a id="\Zend_Uri_Http::_parseUri()" class="anchor"></a><div class="method protected"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_protected.png" style="margin-right: 5px" alt="protected"></img><span class="highlight">_parseUri</span><span class="nb-faded-text">(string $schemeSpecific)</span> : void</code><div class="description"><p class="short_description">Parse the scheme-specific portion of the URI and place its parts into instance variables.</p></div><div class="code-tabs"><div class="long-description"></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$schemeSpecific</th><td>string</td><td><em><p>The scheme-specific portion to parse</p>
</em></td></tr></table><strong>Throws</strong><table class="argument-info"><thead><tr><th>Exception</th><th>Description</th></tr></thead><tr><td><a href="../files/Uri.Exception.html#\Zend_Uri_Exception">\Zend_Uri_Exception</a></td><td><em>When scheme-specific decoposition fails</em></td></tr><tr><td><a href="../files/Uri.Exception.html#\Zend_Uri_Exception">\Zend_Uri_Exception</a></td><td><em>When authority decomposition fails</em></td></tr></table></div><div class="clear"></div></div><a id="\Zend_Uri_Http::addReplaceQueryParameters()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">addReplaceQueryParameters</span><span class="nb-faded-text">(array $queryParams)</span> : string</code><div class="description"><p class="short_description">Add or replace params in the query string for the current URI, and
return the old query.</p></div><div class="code-tabs"><div class="long-description"></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$queryParams</th><td>array</td><td><em></em></td></tr></table><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>string</td><td>Old query string</td></tr></table></div><div class="clear"></div></div><a id="\Zend_Uri_Http::check()" class="anchor"></a><div class="method public inherited_from "><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">check</span><span class="nb-faded-text">(string $uri)</span> : boolean</code><div class="description"><span class="attribute">static</span><span class="attribute">inherited</span><p class="short_description">Convenience function, checks that a $uri string is well-formed
by validating it but not returning an object.</p><small class="inherited_from">Inherited from:
                    <a href="../files/Uri.html#\Zend_Uri::check()">\Zend_Uri::check()</a></small></div><div class="code-tabs"><div class="long-description"><p>Returns TRUE if
$uri is a well-formed URI, or FALSE otherwise.</p></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$uri</th><td>string</td><td><em><p>The URI to check</p></em></td></tr></table><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>boolean</td><td></td></tr></table></div><div class="clear"></div></div><a id="\Zend_Uri_Http::factory()" class="anchor"></a><div class="method public inherited_from "><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">factory</span><span class="nb-faded-text">(string $uri = 'http', string $className = null)</span> : <a href="../files/Uri.html#\Zend_Uri">\Zend_Uri</a></code><div class="description"><span class="attribute">static</span><span class="attribute">inherited</span><p class="short_description">Create a new Zend_Uri object for a URI.</p><small class="inherited_from">Inherited from:
                    <a href="../files/Uri.html#\Zend_Uri::factory()">\Zend_Uri::factory()</a></small></div><div class="code-tabs"><div class="long-description"><p>If building a new URI, then $uri should contain
only the scheme (http, ftp, etc).  Otherwise, supply $uri with the complete URI.</p></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$uri</th><td>string</td><td><em><p>The URI form which a Zend_Uri instance is created</p></em></td></tr><tr><th>$className</th><td>string</td><td><em><p>The name of the class to use in order to manipulate URI</p></em></td></tr></table><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td><a href="../files/Uri.html#\Zend_Uri">\Zend_Uri</a></td><td></td></tr></table><strong>Throws</strong><table class="argument-info"><thead><tr><th>Exception</th><th>Description</th></tr></thead><tr><td><a href="../files/Uri.Exception.html#\Zend_Uri_Exception">\Zend_Uri_Exception</a></td><td><em>When an empty string was supplied for the scheme</em></td></tr><tr><td><a href="../files/Uri.Exception.html#\Zend_Uri_Exception">\Zend_Uri_Exception</a></td><td><em>When an illegal scheme is supplied</em></td></tr><tr><td><a href="../files/Uri.Exception.html#\Zend_Uri_Exception">\Zend_Uri_Exception</a></td><td><em>When the scheme is not supported</em></td></tr><tr><td><a href="../files/Uri.Exception.html#\Zend_Uri_Exception">\Zend_Uri_Exception</a></td><td><em>When $className doesn't exist or doesn't implements Zend_Uri</em></td></tr></table><strong>Details</strong><dl class="function-info"><dt>Link</dt><dd><a href="http://www.faqs.org/rfcs/rfc2396.html">http://www.faqs.org/rfcs/rfc2396.html</a>
         
    </dd></dl></div><div class="clear"></div></div><a id="\Zend_Uri_Http::fromString()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">fromString</span><span class="nb-faded-text">(string $uri)</span> : <a href="../files/Uri.Http.html#\Zend_Uri_Http">\Zend_Uri_Http</a></code><div class="description"><span class="attribute">static</span><p class="short_description">Creates a Zend_Uri_Http from the given string</p></div><div class="code-tabs"><div class="long-description"></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$uri</th><td>string</td><td><em><p>String to create URI from, must start with
                    'http://' or 'https://'</p>
</em></td></tr></table><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td><a href="../files/Uri.Http.html#\Zend_Uri_Http">\Zend_Uri_Http</a></td><td></td></tr></table><strong>Throws</strong><table class="argument-info"><thead><tr><th>Exception</th><th>Description</th></tr></thead><tr><td><a href="../files/http://php.net/manual/en/class.invalidargumentexception.php">\InvalidArgumentException</a></td><td><em>When the given $uri is not a string or
                                  does not start with http:// or https://</em></td></tr><tr><td><a href="../files/Uri.Exception.html#\Zend_Uri_Exception">\Zend_Uri_Exception</a></td><td><em>When the given $uri is invalid</em></td></tr></table></div><div class="clear"></div></div><a id="\Zend_Uri_Http::getFragment()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">getFragment</span><span class="nb-faded-text">()</span> : string | false</code><div class="description"><p class="short_description">Returns the fragment portion of the URL (after #), or FALSE if none.</p></div><div class="code-tabs"><div class="long-description"></div><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>string | false</td><td></td></tr></table></div><div class="clear"></div></div><a id="\Zend_Uri_Http::getHost()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">getHost</span><span class="nb-faded-text">()</span> : string</code><div class="description"><p class="short_description">Returns the domain or host IP portion of the URL, or FALSE if none.</p></div><div class="code-tabs"><div class="long-description"></div><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>string</td><td></td></tr></table></div><div class="clear"></div></div><a id="\Zend_Uri_Http::getPassword()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">getPassword</span><span class="nb-faded-text">()</span> : string</code><div class="description"><p class="short_description">Returns the password portion of the URL, or FALSE if none.</p></div><div class="code-tabs"><div class="long-description"></div><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>string</td><td></td></tr></table></div><div class="clear"></div></div><a id="\Zend_Uri_Http::getPath()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">getPath</span><span class="nb-faded-text">()</span> : string</code><div class="description"><p class="short_description">Returns the path and filename portion of the URL.</p></div><div class="code-tabs"><div class="long-description"></div><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>string</td><td></td></tr></table></div><div class="clear"></div></div><a id="\Zend_Uri_Http::getPort()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">getPort</span><span class="nb-faded-text">()</span> : string</code><div class="description"><p class="short_description">Returns the TCP port, or FALSE if none.</p></div><div class="code-tabs"><div class="long-description"></div><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>string</td><td></td></tr></table></div><div class="clear"></div></div><a id="\Zend_Uri_Http::getQuery()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">getQuery</span><span class="nb-faded-text">()</span> : string</code><div class="description"><p class="short_description">Returns the query portion of the URL (after ?), or FALSE if none.</p></div><div class="code-tabs"><div class="long-description"></div><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>string</td><td></td></tr></table></div><div class="clear"></div></div><a id="\Zend_Uri_Http::getQueryAsArray()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">getQueryAsArray</span><span class="nb-faded-text">()</span> : array</code><div class="description"><p class="short_description">Returns the query portion of the URL (after ?) as a
key-value-array.</p></div><div class="code-tabs"><div class="long-description"><p>If the query is empty an empty array
is returned</p></div><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>array</td><td></td></tr></table></div><div class="clear"></div></div><a id="\Zend_Uri_Http::getScheme()" class="anchor"></a><div class="method public inherited_from "><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">getScheme</span><span class="nb-faded-text">()</span> : string | false</code><div class="description"><span class="attribute">inherited</span><p class="short_description">Get the URI's scheme</p><small class="inherited_from">Inherited from:
                    <a href="../files/Uri.html#\Zend_Uri::getScheme()">\Zend_Uri::getScheme()</a></small></div><div class="code-tabs"><div class="long-description"></div><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>string | false</td><td>Scheme or false if no scheme is set.</td></tr></table></div><div class="clear"></div></div><a id="\Zend_Uri_Http::getUri()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">getUri</span><span class="nb-faded-text">()</span> : string</code><div class="description"><p class="short_description">Returns a URI based on current values of the instance variables.</p></div><div class="code-tabs"><div class="long-description"><p>If any
part of the URI does not pass validation, then an exception is thrown.</p></div><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>string</td><td></td></tr></table><strong>Throws</strong><table class="argument-info"><thead><tr><th>Exception</th><th>Description</th></tr></thead><tr><td><a href="../files/Uri.Exception.html#\Zend_Uri_Exception">\Zend_Uri_Exception</a></td><td><em>When one or more parts of the URI are invalid</em></td></tr></table></div><div class="clear"></div></div><a id="\Zend_Uri_Http::getUsername()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">getUsername</span><span class="nb-faded-text">()</span> : string</code><div class="description"><p class="short_description">Returns the username portion of the URL, or FALSE if none.</p></div><div class="code-tabs"><div class="long-description"></div><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>string</td><td></td></tr></table></div><div class="clear"></div></div><a id="\Zend_Uri_Http::removeQueryParameters()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">removeQueryParameters</span><span class="nb-faded-text">(array $queryParamKeys)</span> : string</code><div class="description"><p class="short_description">Remove params in the query string for the current URI, and
return the old query.</p></div><div class="code-tabs"><div class="long-description"></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$queryParamKeys</th><td>array</td><td><em></em></td></tr></table><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>string</td><td>Old query string</td></tr></table></div><div class="clear"></div></div><a id="\Zend_Uri_Http::setConfig()" class="anchor"></a><div class="method public inherited_from "><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">setConfig</span><span class="nb-faded-text">(\Zend_Config | array $config)</span> : void</code><div class="description"><span class="attribute">static</span><span class="attribute">inherited</span><p class="short_description">Set global configuration options</p><small class="inherited_from">Inherited from:
                    <a href="../files/Uri.html#\Zend_Uri::setConfig()">\Zend_Uri::setConfig()</a></small></div><div class="code-tabs"><div class="long-description"></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$config</th><td>\Zend_Config | array</td><td><em></em></td></tr></table></div><div class="clear"></div></div><a id="\Zend_Uri_Http::setFragment()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">setFragment</span><span class="nb-faded-text">(string $fragment)</span> : string</code><div class="description"><p class="short_description">Sets the fragment for the current URI, and returns the old fragment</p></div><div class="code-tabs"><div class="long-description"></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$fragment</th><td>string</td><td><em><p>Fragment of the current URI</p></em></td></tr></table><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>string</td><td></td></tr></table><strong>Throws</strong><table class="argument-info"><thead><tr><th>Exception</th><th>Description</th></tr></thead><tr><td><a href="../files/Uri.Exception.html#\Zend_Uri_Exception">\Zend_Uri_Exception</a></td><td><em>When $fragment is not a valid HTTP fragment</em></td></tr></table></div><div class="clear"></div></div><a id="\Zend_Uri_Http::setHost()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">setHost</span><span class="nb-faded-text">(string $host)</span> : string</code><div class="description"><p class="short_description">Sets the host for the current URI, and returns the old host</p></div><div class="code-tabs"><div class="long-description"></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$host</th><td>string</td><td><em><p>The HTTP host</p></em></td></tr></table><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>string</td><td></td></tr></table><strong>Throws</strong><table class="argument-info"><thead><tr><th>Exception</th><th>Description</th></tr></thead><tr><td><a href="../files/Uri.Exception.html#\Zend_Uri_Exception">\Zend_Uri_Exception</a></td><td><em>When $host is nota valid HTTP host</em></td></tr></table></div><div class="clear"></div></div><a id="\Zend_Uri_Http::setPassword()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">setPassword</span><span class="nb-faded-text">(string $password)</span> : string</code><div class="description"><p class="short_description">Sets the password for the current URI, and returns the old password</p></div><div class="code-tabs"><div class="long-description"></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$password</th><td>string</td><td><em><p>The HTTP password</p></em></td></tr></table><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>string</td><td></td></tr></table><strong>Throws</strong><table class="argument-info"><thead><tr><th>Exception</th><th>Description</th></tr></thead><tr><td><a href="../files/Uri.Exception.html#\Zend_Uri_Exception">\Zend_Uri_Exception</a></td><td><em>When $password is not a valid HTTP password</em></td></tr></table></div><div class="clear"></div></div><a id="\Zend_Uri_Http::setPath()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">setPath</span><span class="nb-faded-text">(string $path)</span> : string</code><div class="description"><p class="short_description">Sets the path for the current URI, and returns the old path</p></div><div class="code-tabs"><div class="long-description"></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$path</th><td>string</td><td><em><p>The HTTP path</p></em></td></tr></table><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>string</td><td></td></tr></table><strong>Throws</strong><table class="argument-info"><thead><tr><th>Exception</th><th>Description</th></tr></thead><tr><td><a href="../files/Uri.Exception.html#\Zend_Uri_Exception">\Zend_Uri_Exception</a></td><td><em>When $path is not a valid HTTP path</em></td></tr></table></div><div class="clear"></div></div><a id="\Zend_Uri_Http::setPort()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">setPort</span><span class="nb-faded-text">(string $port)</span> : string</code><div class="description"><p class="short_description">Sets the port for the current URI, and returns the old port</p></div><div class="code-tabs"><div class="long-description"></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$port</th><td>string</td><td><em><p>The HTTP port</p></em></td></tr></table><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>string</td><td></td></tr></table><strong>Throws</strong><table class="argument-info"><thead><tr><th>Exception</th><th>Description</th></tr></thead><tr><td><a href="../files/Uri.Exception.html#\Zend_Uri_Exception">\Zend_Uri_Exception</a></td><td><em>When $port is not a valid HTTP port</em></td></tr></table></div><div class="clear"></div></div><a id="\Zend_Uri_Http::setQuery()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">setQuery</span><span class="nb-faded-text">(string | array $query)</span> : string</code><div class="description"><p class="short_description">Set the query string for the current URI, and return the old query
string This method accepts both strings and arrays.</p></div><div class="code-tabs"><div class="long-description"></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$query</th><td>string | array</td><td><em><p>The query string or array</p></em></td></tr></table><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>string</td><td>Old query string</td></tr></table><strong>Throws</strong><table class="argument-info"><thead><tr><th>Exception</th><th>Description</th></tr></thead><tr><td><a href="../files/Uri.Exception.html#\Zend_Uri_Exception">\Zend_Uri_Exception</a></td><td><em>When $query is not a valid query string</em></td></tr></table></div><div class="clear"></div></div><a id="\Zend_Uri_Http::setUsername()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">setUsername</span><span class="nb-faded-text">(string $username)</span> : string</code><div class="description"><p class="short_description">Sets the username for the current URI, and returns the old username</p></div><div class="code-tabs"><div class="long-description"></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$username</th><td>string</td><td><em><p>The HTTP username</p></em></td></tr></table><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>string</td><td></td></tr></table><strong>Throws</strong><table class="argument-info"><thead><tr><th>Exception</th><th>Description</th></tr></thead><tr><td><a href="../files/Uri.Exception.html#\Zend_Uri_Exception">\Zend_Uri_Exception</a></td><td><em>When $username is not a valid HTTP username</em></td></tr></table></div><div class="clear"></div></div><a id="\Zend_Uri_Http::valid()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">valid</span><span class="nb-faded-text">()</span> : boolean</code><div class="description"><p class="short_description">Validate the current URI from the instance variables.</p></div><div class="code-tabs"><div class="long-description"><p>Returns true if and only if all
parts pass validation.</p></div><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>boolean</td><td></td></tr></table></div><div class="clear"></div></div><a id="\Zend_Uri_Http::validateFragment()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">validateFragment</span><span class="nb-faded-text">(string $fragment = null)</span> : boolean</code><div class="description"><p class="short_description">Returns true if and only if the fragment passes validation.</p></div><div class="code-tabs"><div class="long-description"><p>If no fragment is passed,
then the fragment contained in the instance variable is used.</p></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$fragment</th><td>string</td><td><em><p>Fragment of an URI</p></em></td></tr></table><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>boolean</td><td></td></tr></table><strong>Throws</strong><table class="argument-info"><thead><tr><th>Exception</th><th>Description</th></tr></thead><tr><td><a href="../files/Uri.Exception.html#\Zend_Uri_Exception">\Zend_Uri_Exception</a></td><td><em>When fragment validation fails</em></td></tr></table><strong>Details</strong><dl class="function-info"><dt>Link</dt><dd><a href="http://www.faqs.org/rfcs/rfc2396.html">http://www.faqs.org/rfcs/rfc2396.html</a>
         
    </dd></dl></div><div class="clear"></div></div><a id="\Zend_Uri_Http::validateHost()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">validateHost</span><span class="nb-faded-text">(string $host = null)</span> : boolean</code><div class="description"><p class="short_description">Returns true if and only if the host string passes validation.</p></div><div class="code-tabs"><div class="long-description"><p>If no host is passed,
then the host contained in the instance variable is used.</p></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$host</th><td>string</td><td><em><p>The HTTP host</p></em></td></tr></table><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>boolean</td><td></td></tr></table><strong>Details</strong><dl class="function-info"><dt>Uses</dt><dd>\Zend_Filter
         
    </dd></dl></div><div class="clear"></div></div><a id="\Zend_Uri_Http::validatePassword()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">validatePassword</span><span class="nb-faded-text">(string $password = null)</span> : boolean</code><div class="description"><p class="short_description">Returns true if and only if the password passes validation.</p></div><div class="code-tabs"><div class="long-description"><p>If no password is passed,
then the password contained in the instance variable is used.</p></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$password</th><td>string</td><td><em><p>The HTTP password</p></em></td></tr></table><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>boolean</td><td></td></tr></table><strong>Throws</strong><table class="argument-info"><thead><tr><th>Exception</th><th>Description</th></tr></thead><tr><td><a href="../files/Uri.Exception.html#\Zend_Uri_Exception">\Zend_Uri_Exception</a></td><td><em>When password validation fails</em></td></tr></table><strong>Details</strong><dl class="function-info"><dt>Link</dt><dd><a href="http://www.faqs.org/rfcs/rfc2396.html">http://www.faqs.org/rfcs/rfc2396.html</a>
         
    </dd></dl></div><div class="clear"></div></div><a id="\Zend_Uri_Http::validatePath()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">validatePath</span><span class="nb-faded-text">(string $path = null)</span> : boolean</code><div class="description"><p class="short_description">Returns true if and only if the path string passes validation.</p></div><div class="code-tabs"><div class="long-description"><p>If no path is passed,
then the path contained in the instance variable is used.</p></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$path</th><td>string</td><td><em><p>The HTTP path</p></em></td></tr></table><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>boolean</td><td></td></tr></table><strong>Throws</strong><table class="argument-info"><thead><tr><th>Exception</th><th>Description</th></tr></thead><tr><td><a href="../files/Uri.Exception.html#\Zend_Uri_Exception">\Zend_Uri_Exception</a></td><td><em>When path validation fails</em></td></tr></table></div><div class="clear"></div></div><a id="\Zend_Uri_Http::validatePort()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">validatePort</span><span class="nb-faded-text">(string $port = null)</span> : boolean</code><div class="description"><p class="short_description">Returns true if and only if the TCP port string passes validation.</p></div><div class="code-tabs"><div class="long-description"><p>If no port is passed,
then the port contained in the instance variable is used.</p></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$port</th><td>string</td><td><em><p>The HTTP port</p></em></td></tr></table><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>boolean</td><td></td></tr></table></div><div class="clear"></div></div><a id="\Zend_Uri_Http::validateQuery()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">validateQuery</span><span class="nb-faded-text">(string $query = null)</span> : boolean</code><div class="description"><p class="short_description">Returns true if and only if the query string passes validation.</p></div><div class="code-tabs"><div class="long-description"><p>If no query is passed,
then the query string contained in the instance variable is used.</p></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$query</th><td>string</td><td><em><p>The query to validate</p></em></td></tr></table><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>boolean</td><td></td></tr></table><strong>Throws</strong><table class="argument-info"><thead><tr><th>Exception</th><th>Description</th></tr></thead><tr><td><a href="../files/Uri.Exception.html#\Zend_Uri_Exception">\Zend_Uri_Exception</a></td><td><em>When query validation fails</em></td></tr></table><strong>Details</strong><dl class="function-info"><dt>Link</dt><dd><a href="http://www.faqs.org/rfcs/rfc2396.html">http://www.faqs.org/rfcs/rfc2396.html</a>
         
    </dd></dl></div><div class="clear"></div></div><a id="\Zend_Uri_Http::validateUsername()" class="anchor"></a><div class="method public"><a href="#" class="gripper"><img src="../images/icons/arrow_right.png"></img><img src="../images/icons/arrow_down.png" style="display: none;"></img></a><code class="title"><img src="../images/icons/method.png" alt="method" title="method"></img><img src="../images/icons/visibility_public.png" style="margin-right: 5px" alt="public"></img><span class="highlight">validateUsername</span><span class="nb-faded-text">(string $username = null)</span> : boolean</code><div class="description"><p class="short_description">Returns true if and only if the username passes validation.</p></div><div class="code-tabs"><div class="long-description"><p>If no username is passed,
then the username contained in the instance variable is used.</p></div><strong>Parameters</strong><table class="argument-info"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tr><th>$username</th><td>string</td><td><em><p>The HTTP username</p></em></td></tr></table><strong>Returns</strong><table class="argument-info"><thead><tr><th>Type</th><th>Description</th></tr></thead><tr><td>boolean</td><td></td></tr></table><strong>Throws</strong><table class="argument-info"><thead><tr><th>Exception</th><th>Description</th></tr></thead><tr><td><a href="../files/Uri.Exception.html#\Zend_Uri_Exception">\Zend_Uri_Exception</a></td><td><em>When username validation fails</em></td></tr></table><strong>Details</strong><dl class="function-info"><dt>Link</dt><dd><a href="http://www.faqs.org/rfcs/rfc2396.html">http://www.faqs.org/rfcs/rfc2396.html</a>
         
    </dd></dl></div><div class="clear"></div></div></div></div></div><small class="footer">
            Documentation was generated by
            <a href="http://phpdoc.org">phpDocumentor
                2.0.0a12</a>.
        </small></body></html>
